package com.cb.domain.service.system.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cb.core.service.impl.GenericManagerImpl;
import com.cb.domain.model.system.Company;
import com.cb.domain.dao.system.AppRoleDAO;
import com.cb.domain.dao.system.CompanyDAO;
import com.cb.domain.service.system.CompanyManager;
import com.cb.core.webapp.paging.PagingBean;

@Service
public class CompanyManagerImpl extends GenericManagerImpl<Company, Long> implements CompanyManager{
	
	@Autowired
	private CompanyDAO companyDAO;
	
	@Autowired
	public CompanyManagerImpl(CompanyDAO companyDAO) {
		super(companyDAO);
		// TODO Auto-generated constructor stub
	}
	
	/**
	 * {@inheritDoc}
	 */
	public List<Company>getByVo(Company vo,PagingBean pb){
		return ((CompanyDAO)genericDAO).getByVo(vo, pb);
	}
}
